from rest_framework import serializers

from goods.models import SKUImage


class PictureManageSerializer(serializers.ModelSerializer):
    class Meta:
        model = SKUImage
        fields = ("id","sku","image")




# {
#         "counts": "图片总数量",
#         "lists": [
#               {
#                 "id": "图片id",
#                 "sku": "SKU商品id",
#                 "image": "图片地址"
#               }
#             ...
#        ],
#        "page": "页码",
#        "pages": "总页数",
#        "pagesize": "页容量"
#   }
